<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: copyCommon"></head>

<link rel="stylesheet" th:href="@{/css/dialog.css}" />
<script type="text/javascript" th:src="@{/js/product/notice/add.js}"></script>

<body style="background:white">

    <div class="l_err" style="width: 100%; margin-top: 2px;"></div>
    <form id="form" name="form" class="form-horizontal" method="post" th:action="@{/product/notice/addEntity}" style="width:600px">
        <div class="pop-wrrap">
            <div class="form-group">
                <label class="control-label"><span class="color-red">*</span>标题：</label>
                <input type="text" class="form-control " placeholder="标题" name="title" id="title" />
            </div>
            <div class="form-group">
                    <label class="control-label"><span class="color-red">*</span>名称：</label>
                    <input type="text" class="form-control " placeholder="名称" name="name" id="name" />
            </div>
            <div class="form-group">
                    <label class="control-label"><span class="color-red">*</span>起始时间：</label>
                    <input type="text" class="form-control" placeholder="" name="startTime" id="startTime" readonly="true"/>
            </div>
            <div class="form-group">
                    <label class="control-label"><span class="color-red">*</span>结束时间：</label>
                    <input type="text" class="form-control" placeholder="" name="endTime" id="endTime" />
            </div>
            <div class="form-group" style="height:100px">
                <label class="control-label"><span class="color-red">*</span>内容：</label>
                <textarea rows="4" cols="10" class="form-control" placeholder="内容" name="content" id="content" style="height:100px"></textarea>
            </div>
            <div class="form-group">
                <label class="control-label"><span class="color-red">*</span>图片地址：</label>
                <input type="text" class="form-control " placeholder="图片地址" name="imageUrl" id="imageUrl" />
            </div>
            <div class="form-group">
                <label class="control-label"><span class="color-red">*</span>图片链接：</label>
                <input type="text" class="form-control " placeholder="图片链接" name="linkUrl" id="linkUrl" />
            </div>
            <footer class="panel-footer text-right bg-light lter">
                <div class="main_rmc_operate">
                    <button type="submit" class="main_rmc_btn main_rmc_btn_success submit">确定</button>
                    <button type="button" class="main_rmc_btn cancel">取消</button>
                </div>
            </footer>
        </div>
    </form>
</body>

<script type="text/javascript">
  layui.use('laydate', function(){
      var laydate = layui.laydate;

      laydate.render({
        elem: '#startTime'
        ,type: 'datetime'
        ,trigger: 'click'
      });

      laydate.render({
        elem: '#endTime'
        ,type: 'datetime'
        ,trigger: 'click'
      });
 });

</script>
</html>